package com.liuliu.mall.product.feign;

import com.liuliu.mall.common.dto.SkuHasStockDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @program: mall-search
 * @description:
 * @author: wxw
 * @create: 2022-02-21 16:19
 **/
@FeignClient("mall-ware")
public interface WareSkuFeginService {

    @PostMapping("/ware/waresku/hasStock")
    List<SkuHasStockDto> getSkuHasStock(@RequestBody List<Long> skuIds);
}